package common;

import java.util.ArrayList;
import java.util.List;
import java.util.Vector;

public class CIBIO {
    public Vector<Announcement> announcements;
    public List<Integer> withdraw;

    //fat-tree
    public String dst;
    public int packetSpace;

    public CIBIO(){
        announcements = new Vector<>();
        withdraw = new ArrayList<>();
    }
    public CIBIO(Vector<Announcement> announcement, List<Integer> withdraw){
        this.announcements = announcement;
        this.withdraw=withdraw;
    }

    //fat tree 发送dst
    public CIBIO(Vector<Announcement> announcement, List<Integer> withdraw,String dst){
        this.announcements = announcement;
        this.withdraw=withdraw;
        this.dst=dst;
    }
    //fat tree 发送dst packetSpace
    public CIBIO(Vector<Announcement> announcement, List<Integer> withdraw,String dst,int packetSpace){
        this.announcements = announcement;
        this.withdraw=withdraw;
        this.dst=dst;
        this.packetSpace=packetSpace;
    }

    @Override
    public String toString() {
        return "{" +
                "announcement=" + announcements +
                ", withdraw=" + withdraw +
                '}';
    }

}
